<?php
namespace addons\update106_107;
use think\Controller;

class Update106_107 extends Controller
{
    public $info = [
        'name' => 'update106_107',
        'title' => '升级插件',
        'description' => 'v1.0.6升级至v1.0.7',
        'status' => 0,
        'author' => '',
        'version' => '1.0.0',
    ];
    public function install()
    {
    	$info = db('BaseSettings')->where('key','localCurrentVersionNum')->find();
    	if ($info['val'] == 106) {
    		return true;
    	} else {
    		return false;
    	}
        return true;
    }

    public function uninstall()
    {
        return true;
    }

}

